home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
SHARED.DIR
/
03101_Script_INVENTORY
< prev
next >
Wrap
Text File
|
1996-04-01
|
4KB
|
106 lines
-- -----------------------------------------------------------
-- Handler goInventoryMainScreen goes to the main screen of the
-- inventory movie that allows the user to select a particular
-- invention to view a summary of.
on goInventoryMainScreen
setInventoryContinue(the frame, the movieName)
playLoadingSound
go frame "MInventStart" of movie "Gallery"
end
-- -----------------------------------------------------------
-- Handler goInventoryInvention goes to the summary
-- screen of the given invention in the inventory movie).
on goInventoryInvention whichInvention
hiliteButton
waitcursor
-- if in gallery movie and going to another category, set
-- the continue frame to be the first frame of the gallery movie
if (the movieName = "Gallery") or (the movieName = "Gallery.dir") then
setInventoryContinue ("MInventStart", the movieName)
else
setInventoryContinue(the frame, the movieName)
end if
-- set the currentInvention so handlers like goMenu etc
-- will work in the next movie.
global currentInvention
set currentInvention = whichInvention
go frame whichInvention
normalCursor
end
-- -----------------------------------------------------------
-- Handler doClickInventoryFromOldInvention is called when the
-- user clicks the inventory button in a particular OLD invention.
-- It goes to the screen for the old invention in the inventory
-- movie.
on doClickInventoryFromOldInvention whichInvention
hiliteButton
setInventoryContinue(whichInvention && "menu", the movieName)
go frame whichInvention of movie "Gallery"
end
-- -----------------------------------------------------------
-- Handler doClickInventoryButtonMain is called when the
-- user clicks the inventory button that should go to the main
-- screen of the inventory movie and also hilite the button
-- and set the return to the current screen.
on doClickInventoryButtonMain
hiliteButton
setInventoryContinue(the frame, the movieName)
goInventoryMainScreen
end
-- -----------------------------------------------------------
-- Handler setInventoryContinue is called when the
-- user goes to the inventory movie. It stores the movie the
-- user is coming from.
on setInventoryContinue whichFrame, whichMovie
global inventoryContinueMovie, inventoryContinueFrame
set inventoryContinueFrame = whichFrame
set inventoryContinueMovie = whichMovie
end
-- -----------------------------------------------------------
-- Handler continueFromInventory returns from the
-- inventory frame of an invention movie. If the user was
-- coming from the inventory movie, it goes there. otherwise,
-- it returns to the menu frame of the invention movie.
on continueFromInventory
global inventoryContinueMovie, inventoryContinueFrame
hiliteButton(1,0)
if (the movie = inventoryContinueMovie) then
go frame inventoryContinueFrame
else
go frame inventoryContinueFrame of movie inventoryContinueMovie
end if
end
-- -----------------------------------------------------------
-- Handler continueInInventoryCategory is called when the
-- user clicks the next or prev arrows on an inventory summary screen.
on continueInInventoryCategory whichInvention
waitCursor
setInventoryContinue ("MInventStart", the movieName)
if (the movieName = "Gallery") or (the movieName = "Gallery.dir") then
-- already in inventory movie, just go to the frame
go frame whichInvention
else -- go to the movie also
go frame whichInvention of movie "Gallery.dir"
end if
normalCursor
end